package com.config.tomcat.lifecycle;

import org.apache.catalina.Container;
import org.apache.catalina.ContainerEvent;
import org.apache.catalina.ContainerListener;

/**
 * @author chengyadong
 * @date 2023/9/21 17:27
 * @description host组件事件监听器
 */
public class ContextContainerListener implements ContainerListener {
	@Override
	public void containerEvent(ContainerEvent event) {
		if(event.getType().equals(Container.ADD_CHILD_EVENT)){
			System.out.println("context组件添加children事件发生");
		}
	}
}
